import axios from './axiosFun';

//按照月份和年份来统计销售金额
export const getPriceByMonth = (param) => { return axios.get('/data/getPriceByMonth?year=' + param) }
//按照季度和年份来统计销售金额
export const getPriceByQuarter = (param) => { return axios.get('/data/getPriceByQuarter?year=' + param) }


//相同年月统计销售数量前10的书籍，注意这里是两个参数
export const getAmountSameDate = (param1, param2) => { return axios.get('/data/getAmountSameDate?year=' + param1 + '&month=' + param2) }
//相同年月统计销售数量前10的书籍，注意这里是两个参数
export const getAmountNoSameDate = (param1, param2, param3, param4) => {
    return axios.get('/data/getAmountNoSameDate?startYear=' + param1 +
        '&startMonth=' + param2 + '&endYear=' + param3 + "&endMonth=" + param4)
}

